package com.ssy.lingxi.order.handler.annotation;

import com.ssy.lingxi.order.handler.validator.BigDecimalStringValidator;
import com.ssy.lingxi.order.handler.validator.OrderIdsValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 订单Id列表校验注解
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-17
 */
@Target({ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = OrderIdsValidator.class)
public @interface OrderIdsAnnotation {
    String message() default "订单Id列表不能包含重复值或负数和空值";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
